/**
 * ServerService.java
 * com.sitech.system.server.service
 * Function： TODO 
 *
 *   ver  author   date    
 * ──────────────────────────────────
 *   	 geutopia  Jan 28, 2011        
 *
 * Copyright (c) 2011, TNT All Rights Reserved.
*/

package com.sitech.server.service;

import java.util.List;

import com.sitech.server.domain.ServerInfo;

/**
 * ClassName:ServerService
 * Function: TODO ADD FUNCTION
 * Reason:	 TODO ADD REASON
 *
 * @author   geutopia
 * @version  
 * @since    Ver 1.1
 * @Date	 2011	Jan 28, 2011		1:50:35 PM
 *
 * @see 	 
 */

public interface ServerService
{
	public static String SERVER_STATUS_UP = "1";
	public static String SERVER_STATUS_DOWN = "0";

	public void insertServer(ServerInfo serverInfo);
	public List<ServerInfo> queryAllServerList();
	public List<ServerInfo> getServer(String ip);
	public List<ServerInfo> getServer(String ip, String port);
	public ServerInfo getServer(String ip, String port, String context);
	public ServerInfo getLocalServer();
	public void setLocalServer(ServerInfo serverInfo);
	public void updateServer(ServerInfo serverInfo);
}
